<load file="__PUBLIC__/header.html"/>
<ul class="top_title">
    <li>
        <p class="menu_title">后台登录日志</p>
    </li>
   
</ul>
<form action="__APP__/index/sort" method="post">
    <table class="table">
        <thead>
            <tr class="top_channel">
                <th align="center" width="60">ID</th>
                <th width='20'></th>
                <th align="center" width="26%">登录用户</th>
                <th align="center" width="100">登录状态</th>
                <th align='center' width='100'>登录ip</th>
                <th align='center' width='150'>登录时间</th>
                <th align="center">操作</th>
            </tr>
        </thead>
        <tbody>
      

        <foreach from="$list" value="$v">
            <tr class="top_channel">
           
                <td align="center">
                    <input type="text" disabled="disabled" value="{$v.id}"  class="input-medium"/>
                </td>
                <td width='20'></td>
                <td align="left" class="dis">
                 
                    {$v.loginuser}
                </td>
                
                <td align="center">
                    <if value='$v.status eq "1"'>
                        <span class="btn" >正常</span>
                        <elseif value='$v.status eq "2"'>
                          <span class="btn isshow" style='color:#f60'>密码错误</span>
                          <else/>
                        <span class="btn" style='color:#f00'>无效用户</span>

                    </if>
                </td>
                <td align='center'>{$v.loginip}</td>
                <td align='center'>{$v.logintime|date:"Y-m-d H:i:s",@@}</td>

                <td align="center">
                    <if value="$_SESSION['ax_class'] eq '超级管理员'">
                    <a href="__CONTROL__/delLoginLog?id={$v.id}" class="isok btn del">
                        <i class="icon icon-trash"></i>&nbsp;删除
                    </a>
                    <else/>
                    --
                </if>
                    
                </td>
            </tr>
        </foreach>

            <tr class="top_channel">
                <td></td>
                <td align="center">
                    
                </td>
                <td colspan="5"> {$page}</td>
            </tr>
        </tbody>
    </table>
</form>
<script type='text/javascript'>
    $(function(){
        $('.del').click(function(){
            var cn = confirm('确定删除吗？');
            if(!cn){
                return false;
            }
        });
     


   
    });


       // //修改使用状态
       //  function takeChange(data,zt){
       //   alert(data);
       //  }
</script>
</body>

</html>